/*******************************************************************
 * 
 *  Copyright C 2005 by Amlogic, Inc. All Rights Reserved.
 *
 *  Description: 
 *
 *  Author: Amlogic Software
 *  Created: Fri Nov 11 01:14:18 2005
 *
 *******************************************************************/
#ifndef _USER_H
#define _USER_H

#include <bsp.h>
#include <chipsupport.h>
#include <policy.h>
#include <aw_gui_app.h>
#ifdef MALATA_VERSION
#define WANLIDA_REMOTE
#endif

//#define SUPPORT_KEYBOARD
#ifdef WISTAR_VERSION
#define WISTAR_REMOTE
#define DEFAULT_LANGUAGE_ENGLISH
#ifndef  SUPPORT_KEYBOARD
#define SUPPORT_KEYBOARD
#endif
#endif

#ifdef LINPO_VERSION
#define LINPO_REMOTE
#endif

#define AMLOGIC_REMOTE
//#define KOREAR_REMOTE

//#define NETGEAR_VERSION
//#define AOC_VERSION

#ifdef NETGEAR_VERSION
#undef AMLOGIC_REMOTE
#define KOREAR_REMOTE
#endif

#ifdef AOC_VERSION
#undef KOREAR_REMOTE
#define AMLOGIC_REMOTE
#endif

#ifdef AML_NIKE
#define ENABLE_SPIF_FLASH
#endif

//#define ENABLE_PTP
//#define ENABLE_USBGADGET
//#define TIME_SEARCH
#define SUPPORT_STANDBY
#define OUTPUT_480P
#define ENABLE_USBDRV
#define AUTO_PLAY

#ifndef CHIP_7221
//#define ENABLE_CARD_READER		//has been moved to makefile,every project.
#endif
#ifdef WISTAR_VERSION
#define GPIO_UNMUTE  //set_bsp_mute(FALSE)  //CLEAR_DVI_HD_GP0_LOW
#define GPIO_MUTE    //set_bsp_mute(TRUE)     //SET_DVI_HD_GP0_HIGH
#else
#define GPIO_UNMUTE  //set_bsp_mute(FALSE)  //CLEAR_DVI_HD_GP0_LOW
#define GPIO_MUTE    //set_bsp_mute(TRUE)     //SET_DVI_HD_GP0_HIGH
#endif
//#define GPIO_MUTE_STATUS    //get_bsp_mute()

#define NM_SYS_RESTART_FINISH               0x806

#define gpio_set_FEC_high(pin)  {gpio_set_fec(pin, TRUE);}
#define gpio_set_FEC_low(pin)   {gpio_set_fec(pin, FALSE);}


#define GPIO_MB_UNMUTE  {AudioI2SUnMute();SetMuteStatus(0);policy_set_global_mute(0);}
#define GPIO_MB_MUTE    {AudioI2SMute();SetMuteStatus(1);policy_set_global_mute(1);}
#define GPIO_MUTE_STATUS    GetMuteStatus()//get_bsp_mute()


#ifdef WISTAR_VERSION
#define USB0_HOST
#define USB1_HOST
#else
#ifdef SAMSUNG_VERSION
#define USB0_OTG
#define USB1_HOST
#else
#ifdef AML_NIKE
#define ENABLE_USBGADGET
#define USB0_OTG
#define USB1_NONE
#else
#define USB0_OTG
#define USB1_HOST
#endif
#endif
#endif

#define SCREEN_SAVER_OFF  0
#define SCREEN_SAVER_ON   1

#ifdef ENABLE_BLUETOOTH
	//#define ENABLE_BLUETOOTH_FTP
	#define ENABLE_BLUETOOTH_OPP
	//#define BT_FILESYSTEM
#endif

//#define SUPPORT_RM
//#define SUPPORT_VGA
//#define SOFTWARE_MODE_REMOTE

//#define BIG5
//#define TXT_PLAYER
#define NO_DIR
#define MAX_FILE_NODIR 1024*10
#define MAX_MOUNT_POINT_NUM 24
//////////////////////////
//add by peng su for File Sorting
//#define FILE_SORTING
#ifndef AML_DIR
#undef FILE_SORTING
#endif


#ifdef FILE_SORTING
#define FILENAV_SORT_NONE 0x00
//#define FILENAV_SORT_DIRFIRST 0x01
//#define FILENAV_SORT_NAME_ASCEND 0x02
//#define FILENAV_SORT_NAME_ASCEND_NOCASE 0x03
#define FILENAV_SORT_NUM 500
#define FILENAV_SORT_TYPE FILENAV_SORT_NAME_ASCEND
#endif
//#define AVI_SUBTITLE_ZOOM
#define RESUME_PLAY
#ifdef RESUME_PLAY
#define RESUME_INTERVAL_TIME 0
#define RESUME_FILENAME_LENGTH 100
#endif
#endif // _USER_H
